package com.cashmama.market.api.application.controller.risk.request;

import com.cashmama.market.api.infras.exception.ApplicationException;
import com.cashmama.market.api.infras.utils.StringUtils;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-12-08 16:03
 **/
public class AdvanceLivenessDetectionRequest extends ParamsObject {

    private String livenessId;

    public String getLivenessId() {
        return livenessId;
    }

    public AdvanceLivenessDetectionRequest setLivenessId(String livenessId) {
        this.livenessId = livenessId;
        return this;
    }

    @Override
    public void validate() {
        if(StringUtils.isEmpty(livenessId)){
            throw new ApplicationException("livenessId can not be empty");
        }
    }
}
